

export function getQuery(key) {
  const queryStrArr =  location.search.slice(1).split('&')
  for (let i = 0; i < queryStrArr.length; i++) {
    const item = queryStrArr[i].split('=')
    if (item[0] === key) {
      return item[1]
    }
  }
}
